package com.lixinlei.springboot_servlet.controller.argumentsresolver.CookieValue;

import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/cookie/value")
public class CookieValueController {

    @RequestMapping(path = "/path1")
    public String path1(@CookieValue("JSESSIONID") String jSessionId) {
        System.out.println("********************jSessionId");
        return jSessionId;
    }

}
